package com.zero.common.exception;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
*   业务异常 类
* */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServiceException extends RuntimeException{

    // 序列化
    public static final long serialVersionUID = 1L;

    /*
    *   异常码
    * */
    private Integer code;

    /*
    *   异常信息
    * */
    private String message;


    /*
    *   message
    * */
    public ServiceException(String message){
        this.message = message;
    }


}
